Micro processor Lab Manual / Find no is positive or negative ALP

Program Name

Write a Assembly Language Program to Find no is positive or negative .
Theory
Instruction Mnemonic Operand Comments
MVI C,00 Move immediately 00 into register C for positive
LDA 8100 Load the contents of 8100 in accumulator i.e input
RLC Rotate Accumulator left (i.e input)
JNC XX Jump if no carry
MVI C,FF Move immediately the data FF into register C for negative
MOV A,C Move contents of register C into accumulator
STA 8200 Store the result of 8200 address
HLT Stop
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back